﻿<%@ Page Title="实战战法_首页" Language="C#" MasterPageFile="~/ePioneer/MasterPage.master" AutoEventWireup="true"
    CodeFile="ep_real_index.aspx.cs" Inherits="ePioneer_ep_real_index" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <script type="text/javascript">
        $(document).ready(function () {
            //GetHighList();
            //GetNewList();
            var Request = new QueryString();
            var eptype = Request["type"];
            if (eptype != null && eptype != "")
                GetReal(eptype, 1);
            else
                GetReal(0, 1);
            $(".dp_m .cnt .topbar .navi .nitem4").addClass("naover4");
            $("#itemsboxwrap").css("margin-left", "-100px");
        });

        function QueryString() {
            var name, value, i;
            var str = location.href;
            var num = str.indexOf("?")
            str = str.substr(num + 1);
            var arrtmp = str.split("&");
            for (i = 0; i < arrtmp.length; i++) {
                num = arrtmp[i].indexOf("=");
                if (num > 0) {
                    name = arrtmp[i].substring(0, num);
                    value = arrtmp[i].substr(num + 1);
                    this[name] = value;
                }
            }
        }

        function GetReal(id, num) {
            $('#hid_classid').val(id);
            var classes = Math.pow(2, id);
            $.post("ep_real.ashx?", { action: "GetRealList", classid: classes, page: num },
                   function (data) {

                       $('#real_list').html(data);
                   });
            GetListByClassId(id, num);
        }


        //按分数
        function GetHighList() {
            $.post("ep_real.ashx?", { action: "GetHighList" },
    function (data) {
        $('#high_list').html(data);
    });
        }

        //按时间
        function GetNewList() {
            $.post("ep_real.ashx?", { action: "GetNewList" },
    function (data) {
        $('#new_list').html(data);
    });
        }

        function GetListByClassId(id, num) {
            var list = "";
            var classes = Math.pow(2, id);
            $.post("ep_real.ashx?", { action: "GetListByClassId", classid: classes },
    function (data) {
        var pages = data / 4;
        var temp = data % 4;
        if (temp > 0) {
            pages = parseInt(pages) + 1;
        }
        list += '<ul><li class="forwp"><a href="javascript:void(0);" onclick="GetNext()"><img src="images/page_f2.png" width="17" border="0" height="17" alt="下一页" id="btn_next" /></a></li>';
        for (i = parseInt(pages); i > 0; i--) {
            list += "<li><a href='javascript:void(0)' onclick='GetReal(" + id + "," + i + ")'>" + i + "</a></li>";
        }
        list += '<li class="backp"><a href="javascript:void(0);" onclick="GetPre()"><img src="images/page_b1.png" border="0" width="17" height="17" alt="上一页" id="btn_pre" /></a></li></ul>';
        $('#page_num').html(list);
        $('#hid_classid').val(id);
        $('#hid_pagenum').val(num);
        $('#hid_pages').val(pages);

        if (num == pages) {
            $('#btn_next').attr("src", "images/page_f1.png");
        }
        else {
            $('#btn_next').attr("src", "images/page_f2.png");
        }

        if (num == "1") {
            $('#btn_pre').attr("src", "images/page_b1.png");
        }
        else {
            $('#btn_pre').attr("src", "images/page_b2.png");
        }


    });
        }

        function GetPre() {
            if ($('#hid_pagenum').val() == "1") {
                return false;
            }
            else {
                GetReal($('#hid_classid').val(), parseInt($('#hid_pagenum').val()) - 1);
            }
        }

        function GetNext() {
            if ($('#hid_pagenum').val() == $('#hid_pages').val()) {
                return false;
            }
            else {
                GetReal($('#hid_classid').val(), parseInt($('#hid_pagenum').val()) + 1);
            }
        }
 
    </script>
    <div class="posbar">
        <div class="posi">
            实战战法 > 类别</div>
    </div>
    <!--战法内容-->
    <div class="mbody">
        <div class="left">
            <div class="tit">
                &nbsp;</div>
            <dl>
                <dt>操作难易</dt><dd><a href="javascript:void(0)" onclick="GetReal(0,1)">初级战法</a></dd><dd><a
                    href="javascript:void(0)" onclick="GetReal(1,1)">中级战法</a></dd><dd><a href="javascript:void(0)"
                        onclick="GetReal(2,1)">高级战法</a></dd></dl>
            <dl>
                <dt>常用功能</dt><dd><a href="javascript:void(0)" onclick="GetReal(3,1)">开盘早知道</a></dd><dd><a
                    href="javascript:void(0)" onclick="GetReal(4,1)">版块监测</a></dd><dd><a href="javascript:void(0)"
                        onclick="GetReal(20,1)">资金全景</a></dd><dd><a href="javascript:void(0)" onclick="GetReal(5,1)">黑马雷达</a></dd><dd><a
                            href="javascript:void(0)" onclick="GetReal(6,1)">60涨跌幅排行</a></dd><dd><a href="javascript:void(0)"
                                onclick="GetReal(7,1)">个股分时</a></dd><dd><a href="javascript:void(0)" onclick="GetReal(8,1)">新股掘金</a></dd></dl>
            <dl>
                <dt>适用时间</dt><dd><a href="javascript:void(0)" onclick="GetReal(9,1)">开盘前</a></dd><dd><a
                    href="javascript:void(0)" onclick="GetReal(10,1)">早盘</a></dd><dd><a href="javascript:void(0)"
                        onclick="GetReal(11,1)">午盘</a></dd></dl>
            <dl>
                <dt>个股类型</dt><dd><a href="javascript:void(0)" onclick="GetReal(12,1)">短线热点股</a></dd><dd><a
                    href="javascript:void(0)" onclick="GetReal(13,1)">主力重仓股</a></dd><dd><a href="javascript:void(0)"
                        onclick="GetReal(14,1)">平台突破股</a></dd><dd><a href="javascript:void(0)" onclick="GetReal(15,1)">叠创新高股</a></dd><dd><a
                            href="javascript:void(0)" onclick="GetReal(16,1)">盘中异动股</a></dd><dd><a href="javascript:void(0)"
                                onclick="GetReal(17,1)">价值回归股</a></dd></dl>
            <dl>
                <dt>操作类型</dt><dd><a href="javascript:void(0)" onclick="GetReal(18,1)">选股类</a></dd><dd><a
                    href="javascript:void(0)" onclick="GetReal(19,1)">操作类</a></dd></dl>
        </div>
        <div class="right">
            <div class="r_top">
                <img src="images/dpm_t.png" width="630" height="4" /></div>
            <div class="r_cnt">
                <div class="show_l show_l_2" style="overflow: hidden;">
                    <span id="real_list"></span>
                    <div class="clr">
                    </div>
                    <div class="zf_page" id="page_num" style="bottom: 0;">
                    </div>
                </div>
                <div class="show_r">
                    <div class="menu1">
                    </div>
                    <div class="menu1list" id="high_list" runat="server">
                    </div>
                    <div class="menu2">
                    </div>
                    <div class="menu2list" id="new_list" runat="server">
                    </div>
                </div>
            </div>
            <div class="r_botm">
                <img src="images/dpm_bg5.png" width="630" height="9" /></div>
        </div>
    </div>
    <!--战法内容结束-->
    <input type="text" id="hid_classid" style="display: none" />
    <input type="text" id="hid_pagenum" style="display: none" />
    <input type="text" id="hid_pages" style="display: none" />
</asp:Content>
